<?php
/**
 * 商品模块
 */

Route::group([], function (\Illuminate\Routing\Router $router) {

//    $router->any('goodsList', 'GoodsController@goodsList');

    //获取首页产品分类图
    $router->get('getTop', 'GoodsController@getTop');

    //获取主分类
    $router->get('getMaster', 'GoodsController@getMaster');

    $router->get('getCate', 'GoodsController@getCate');

    $router->get('getAllCate', 'GoodsController@getAllCate');

    $router->get('detail', 'GoodsController@detail');
    $router->get('recommend','GoodsController@recommend');
    $router->get('goodsList', 'GoodsController@goodsList');

});

Route::group([
    'middleware' => 'jwt.auth',
], function (\Illuminate\Routing\Router $router) {


    $router->post('exchange', 'GoodsController@exchange');
    $router->post('exchangeRecord', 'GoodsController@exchangeRecord');

});